/**
 * Created by zsf on 13-12-20.
 */

var http=require('http');
http.createServer(function(req,res){
    res.writeHdead(200,{'Content-Type':'text/html'});
    res.write('<h1>Node.js</h1>');
    res.end('<p>hello world!</p>');
}).listen(3000);
console.log("http 3000 is on!")